package com.tvunetworks.center.user.service;

import com.github.pagehelper.PageInfo;
import com.tvunetworks.center.user.model.MenuBar;
import com.tvunetworks.center.user.model.param.AddMenuBarParam;
import com.tvunetworks.center.user.model.vo.MenuBarVo;

import java.util.List;
/**
 * @author lebronchen
 * @create: 2019-06-10 15:58
 **/
public interface MenuBarService {
    /**
     * initMenuBar
     */
    // 从 tvu_menu 初始化到 tvu_menu_bar
    void initMenuBar();

    /**
     *
     * @param menuBar menuBar
     * @return int
     */
    int addMenuBar(AddMenuBarParam menuBar);

    /**
     *
     * @return List
     */
    List<MenuBarVo> listMenuBar();

    /**
     *
     * @param menu menu
     * @return MenuBar
     */
    MenuBar getByMenu(String menu);

    /**
     *
     * @param id id
     * @return MenuBar
     */
    MenuBar getById(String id);

    /**
     *
     * @param id id
     * @param param param
     * @return int
     */
    int updateMenuBar(String id, AddMenuBarParam param);

    /**
     *
     * @param id id
     * @return int
     */
    int deleteMenuBar(String id);

    /**
     *
     * @param pageNum pageNum
     * @param pageSize pageSize
     * @return PageInfo
     */
    PageInfo<MenuBarVo> pageMenuBar(int pageNum, int pageSize);

    /**
     *
     * @param featureId featureId
     * @return List
     */
    List<MenuBar> listByFeatureId(String featureId);

}
